<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 500px;
            height: 50px;
            background: #ddd;
            padding-top: border-box;
        }
        ul{
            list-style: none;
            padding: 0;
            margin: 0 auto;
        }
        ul li{
            display: inline-block;
            background: #fff;
            padding: 5.5px 10px;
        }
        ul li:hover{
            font-weight: bold;
            background: #aaa;
        }
    </style>
</head>
<body>
    <div class="box">
       <ul>
        <li>上一页</a></li>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
        <li>...99</li>
        <li>下一页</li>
       </ul>
    </div>
</body>
</html>